package cn.deepmax.spring.cloud.system.sale.service;

import cn.deepmax.spring.cloud.system.sale.entity.Order;
import cn.deepmax.spring.cloud.system.sale.vo.AddOrderRequest;
import org.springframework.data.domain.Page;

import java.util.Optional;

public interface OrderService {

    Page<Order> findUserOrders(Long userId, Long productId, String desc,Integer page,Integer size);

    Order addOrder(AddOrderRequest add);

    Optional<Order> findOrder(Long userId, Long id);
}
